package com.zero.test3;

public class Chick extends SwimAdapter{
    public Chick() {
    }

    public Chick(String name, String age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(getColor()+"色的"+ getAge()+ "岁的鸡"+getName()+"在吃小米");
    }
    public void layEggs(){
        System.out.println(getColor()+"色的"+ getAge()+ "岁的鸡"+getName()+"在吃下蛋");
    }
}
